
/**
 *  @brief  文件类
 */

#include "ce_file.h"
#include "ce_file_folder.h"

#include <filesystem>
#include <iostream>

CE_File::CE_File(CE_FileFolder *parent, std::string relative_path, std::string absolute_path)
{
    this->parent = parent;
    // 相对路径
    this->relative_path = relative_path;
    // 绝对路径
    this->absolute_path = absolute_path;
    // 名称
    this->name = std::filesystem::path(absolute_path).filename().string();
    std::cout << "绝对路径: " << absolute_path << std::endl;
    std::cout << "相对路径: " << relative_path << std::endl;
    std::cout << "名称: " << name << std::endl;
}


CE_File::~CE_File()
{
}
